package com.ado.abyss.core.service;

import java.util.List;

import com.ado.abyss.core.dal.model.SysDept;

/**
 * 
 * @author adonais
 * @date 2020/06/08
 * @description 机构业务接口
 *
 */
public interface SysDeptService {

	/**
	 * 查询机构树
	 * @param userId 
	 * @return
	 */
	List<SysDept> findTree();
	
	/**
	 * 
	 * @param record
	 * @return
	 */
    boolean save(SysDept record) ;
    
    /**
     * 
     * @param record
     * @return
     */
    boolean delete(SysDept record) ;
    
    /**
     * 
     * @param records
     * @return
     */
    boolean deleteBatch(List<SysDept> records) ;
    
    /**
     * 
     * @param id
     * @return
     */
    SysDept findById(Long id)  ;
}
